package net.learn.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.learn.framework.common.utils.DateUtils;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 科目管理
 *
 * @author 李立志
 */
@Data
@Schema(description = "科目")
public class QueSubjectVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "科目名称")
    @NotBlank(message = "科目名称不能为空")
    private String subjectName;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;

    @Schema(description = "删除时间")
    private Date deleteTime;

    @Schema(description = "新增人")
    private Long insertId;

    @Schema(description = "修改人")
    private Long updateId;

    @Schema(description = "删除人")
    private Long deleteId;

    @Schema(description = "是否删除")
    private Long isDelete;
}